package com.hiyiin.IntelligentHospital.hosp.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hiyiin.IntelligentHospital.hosp.dao.HospitalSetDao;
import com.hiyiin.IntelligentHospital.model.hosp.HospitalSet;
import org.springframework.stereotype.Service;

@Service
public class HospitalSetServiceImpl extends ServiceImpl<HospitalSetDao, HospitalSet> implements HospitalSetService{
    @Override
    public String getSignKey(String hospcode) {
        QueryWrapper<HospitalSet> qw = new QueryWrapper<>();
        qw.eq(hospcode != null,"hoscode",hospcode);
        HospitalSet hospitalSet = baseMapper.selectOne(qw);
        return hospitalSet.getSignKey();
    }
}
